import rsbuildConfig from '@c/pack/rsbuild.config.js';
import commonConfig from './pack.config.js';

commonConfig.publish = '';
commonConfig.after = (conf) => {
    conf.output.assetPrefix = 'http://localhost:8080';
    conf.moduleFederation = {
        options: {
            name: 'remote_common_mod',
            exposes: {
                './mod': './src/mod',
            },
            filename: 'remote_common_mod.js',
            shared: {
                vue: {
                    singleton: true,
                    shareScope: 'remote_common_mod',
                },
            },
        },
    };
};
export default rsbuildConfig(commonConfig);
